﻿<Page
    x:Class="Studio77.GuessTheWordsWin8.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Studio77.GuessTheWordsWin8"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
	<Page.Resources>
		<Style x:Key="ButtonStyleGift" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled"/>
									<VisualState x:Name="PointerOver"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Image x:Name="image1" Source="Images/btnGiftPackage.png" Stretch="Fill"/>
							<Image x:Name="image" Source="Images/btnGiftPackagePress.png" Stretch="Fill" Visibility="Collapsed"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Page.Resources>

    <Viewbox>

		<Grid Background="{StaticResource NormalBackground}" Height="768" Width="1366">
			<Grid HorizontalAlignment="Center" Width="472" Height="120" VerticalAlignment="Top" Margin="0,68,0,0">
				<Image Margin="0,4,356,0" Source="Images/title_feng.png" Stretch="Fill" Width="116" Height="116"/>
				<Image Margin="116,2,238,0" Source="Images/title_kuang.png" Stretch="Fill" Width="118" Height="118"/>
				<Image Margin="233,0,121,0" Source="Images/title_tian.png" Stretch="Fill" Width="118" Height="120"/>
				<Image Margin="354,2,0,0" Source="Images/title_zi.png" Stretch="Fill" Width="118" Height="118"/>

			</Grid>
			<Image Source="Images/logo77.png" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Bottom" Width="141" Height="40" Margin="1215,0,10,20"/>
			<Rectangle Fill="#FF9C0000" Height="23" VerticalAlignment="Top" StrokeThickness="0"/>
			<Rectangle Fill="#FF9C0000" StrokeThickness="0" Margin="0" VerticalAlignment="Bottom" Height="10"/>
			<Button Content="开始游戏" Click="ButtonStartGame_Click" HorizontalAlignment="Left" Height="111" Margin="516,405,0,0" VerticalAlignment="Top" Width="357" FontSize="48" FontWeight="Bold" Background="#FFFF1111" BorderBrush="{x:Null}" Foreground="White"/>
			<Button Content="继续游戏" Click="ButtonContinueGame_Click" HorizontalAlignment="Left" Height="95" Margin="542,562,0,0" VerticalAlignment="Top" Width="305" FontSize="42.667" FontWeight="Bold" Background="#FF287AFF" BorderBrush="{x:Null}"/>
			<TextBlock HorizontalAlignment="Center" Margin="0,0,0,20" TextWrapping="Wrap" Text="All Rights Reserved by 77Studio. 2013" VerticalAlignment="Bottom" FontSize="21.333"/>
			<Border x:Name="bdrProgress" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="768" VerticalAlignment="Top" Width="1366" Background="#B2000000" Visibility="Collapsed">
				<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
					<ProgressRing HorizontalAlignment="Center" VerticalAlignment="Center" IsActive="True" Width="60" Height="60" Foreground="#FFFF5757"/>
					<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="正在拼命加载中..." FontSize="21.333"/>
				</StackPanel>
			</Border>
			<Button Click="ButtonGift_Click" x:Name="btnGift" Content="Button" HorizontalAlignment="Center" Height="94" Margin="0,285,0,389" Style="{StaticResource ButtonStyleGift}" Width="291" Visibility="Collapsed" RenderTransformOrigin="0.5,0.5">
			</Button>
		</Grid>
	</Viewbox>
</Page>
